declare let hostDomain: any;
declare let hostImg: any;

export const path = {
    // 广告管理
    advertising: {
        // 三处广告
        threeAdvertising: {
            // 列表项
            getList: hostDomain + 'api/AdvertisementManage/advertisementposition/list',
            // 位置类型下拉框
            getSettingType: hostDomain + 'api/SettingManage/setting/list?key=CMSAdvertisementType',
            // 列表项详情
            getListItem: hostDomain + 'api/AdvertisementManage/advertisementposition/get',
            // 新建列表项
            addListItem: hostDomain + 'api/AdvertisementManage/advertisementposition/create',
            // 保存编辑列表项
            editListItem: hostDomain + 'api/AdvertisementManage/advertisementposition/update',
            // 切换目前启用、禁用按钮
            editEnabled: hostDomain + 'api/AdvertisementManage/advertisementposition/updateEnabled'
        }
    },
    // 素材管理
    materialManagement: {
        // 图片管理
        imageManagement: {
            getImgList: hostDomain + 'api/ImageManagement/images/list'
        }
    },
    // 页面管理
    pageManagement: {
        // 首页弹窗
        homepagePopup: {
            // 列表项
            getHomePageList: hostDomain + 'api/PageManage/homepagepop/list',
            // 列表项详情
            getHomePageListItem: hostDomain + 'api/PageManage/homepagepop/get',
            // 保存编辑列表项
            editHomePageListItem: hostDomain + 'api/PageManage/homepagepop/update',
            // 新建列表项
            addHomePageListItem: hostDomain + 'api/PageManage/homepagepop/create',
            // 目前启用、禁用
            isEnabled: hostDomain + 'api/PageManage/homepagepop/updateEnabled',
            // 首页弹窗跳转类型
            getlatformType: hostDomain + 'api/SettingManage/setting/list?key=CMSHomepagepopRedirectingType'
        },
        // 首页弹窗
        floatingWindow: {
            // 列表项
            getList: hostDomain + 'api/pagemanage/floatingwindow/list',
            // 列表项详情
            getListItem: hostDomain + 'api/pagemanage/floatingwindow/get',
            // 编辑列表项
            editListItem: hostDomain + 'api/pagemanage/floatingwindow/update',
            // 删除列表项
            deleteListItem: hostDomain + 'api/pagemanage/floatingwindow/delete',
            // 新建列表项
            addListItem: hostDomain + 'api/pagemanage/floatingwindow/create',
            // 目前启用、禁用
            isEnabled: hostDomain + 'api/pagemanage/floatingwindow/updateenabled',
            // 跳转类型
            getlatformType: hostDomain + 'api/SettingManage/setting/list?key=carouselTemplateItemType'
        }
    },
    // 充值管理
    accountRecharge: {
        // 充值送券管理
        prepaidVoucher: {
            // 充值档列表
            getGradeList: hostDomain + 'api/RechargeManage/recharge/list',
            // 一键启停充值档
            editEnabled: hostDomain + 'api/RechargeManage/recharge/updatestatus',
            // 获取优惠券名称
            getVoucherName: hostDomain + 'api/RechargeManage/recharge/vouchertemplatename',
            // 创建充值档
            createGrade: hostDomain + 'api/RechargeManage/recharge/create',
            // 获取充值档详细信息
            getGradeInfo: hostDomain + 'api/RechargeManage/recharge/get',
            // 更新充值档信息
            editGrade: hostDomain + 'api/RechargeManage/recharge/update',
            // 检查商品编号
            checkSu: hostDomain + 'api/rechargemanage/recharge/checksu',
            // 设置充值档默认选中
            setDefault: hostDomain + 'api/rechargemanage/recharge/setdefault'
        },
        // 支付方式管理
        paymentMethod: {
            // 充值方式列表
            getPaymentList: hostDomain + 'api/RechargeManage/payment/list',
            // 平台类型
            getPlatformTypeList: hostDomain + 'api/SettingManage/setting/list?key=CMSPlatformType',
            // 目前启用、禁用
            editEnabled: hostDomain + 'api/RechargeManage/payment/updatestatus',
            // 更新支付方式列表
            updatePaymentList: hostDomain + 'api/RechargeManage/payment/update'
        },
        // 充值须知
        rechargeManage: {
            getnotice: hostDomain + 'api/RechargeManage/recharge/getnotice',
            createnotice: hostDomain + 'api/RechargeManage/recharge/createnotice'
        }
    },
    // 商品管理
    goodsManage: {
        // 商品打标管理
        markManage: {
            // 获取打标商品列表
            getList: hostDomain + 'api/LabelManagement/goodslabel/list',
            // 获取商品便签信息
            getListItem: hostDomain + 'api/LabelManagement/goodslabel/get',
            // 清除商品所有标签
            clearItem: hostDomain + 'api/LabelManagement/goodslabel/clear',
            // 删除商品的指定标签
            deleteItem: hostDomain + 'api/LabelManagement/goodslabel/delete',
            // 创建标签
            addListItem: hostDomain + 'api/LabelManagement/labels/create',
            addListItemWithSn: hostDomain + 'api/LabelManagement/labels/createsn',
        },
        search: hostDomain + 'api/goodsmanage/goods/search',
    },
    // 市场活动管理
    campaignManage: {
        // 活动商品管理
        activityGoods: {
            getList: hostDomain + 'api/marketactivity/goods/list',
            getListItem: hostDomain + 'api/marketactivity/goods/get',
            createItem: hostDomain + 'api/marketactivity/goods/create',
            editItem: hostDomain + 'api/marketactivity/goods/update',
            goodsSninfo: hostDomain + 'api/marketactivity/goodsinfo/list'
        },
        // 一键下单活动
        oneClickActivity: {
            getList: hostDomain + 'api/marketactivity/basicinfo/list',
            getListItem: hostDomain + 'api/marketactivity/basicinfo/get',
            createItem: hostDomain + 'api/marketactivity/cms_activity_basicinfo/create',
            editItem: hostDomain + 'api/marketactivity/cms_activity_basicinfo/update',
            getSettingType: hostDomain + 'api/SettingManage/setting/list?key=CMSMarketActivityType',
            IsEnabled: hostDomain + 'api/marketactivity/basicinfo/enabled',
            IsStockoutrecommend: hostDomain + 'api/marketactivity/basicinfo/stockoutrecommend',
            // 订单条件信息获取支付方式和配送时段
            orderscondition: hostDomain + 'api/marketactivity/orderscondition/list',
            // 添加活动查询商品列表
            searchList: hostDomain + 'api/marketactivity/goods/search/list',
            // 添加一键下单基础信息
            createBasicInfo: hostDomain + 'api/marketactivity/basicinfo/create',
            // 添加一键下单订单选项
            createOrdersCondition: hostDomain + 'api/marketactivity/orderscondition/create',
            // 添加一键下单活动限制
            createActivityLimit: hostDomain + 'api/marketactivity/activitylimit/create',
            // 添加一键下单活动商品
            createGoodsDetail: hostDomain + 'api/marketactivity/goodsdetail/create',
            // 更新一键下单基础信息
            updateBasicInfo: hostDomain + 'api/marketactivity/basicinfo/update',
            // 更新一键下单订单选项
            updateOrdersCondition: hostDomain + 'api/marketactivity/orderscondition/update',
            // 更新一键下单活动限制
            updateActivityLimit: hostDomain + 'api/marketactivity/activitylimit/update',
            // 更新一键下单活动商品
            updateGoodsDetail: hostDomain + 'api/marketactivity/goodsdetail/update'
        }
    },
    // 登录
    login: {
        apiUrl: hostDomain + 'token'
    },
    // 修改密码
    changePassWord: {
        update: hostDomain + 'api/usermanage/sysuser/change'
    },
    // 公共图片上传
    imagesUpload: {
        // 获取图片库
        apiUrl: hostImg + 'api/image/UploadImage',
        // 获取上传图片id
        getImgId: hostDomain + 'api/ImageManagement/images/create'
    },
    //优惠券管理
    voucherManage: {
        // 优惠券批量发放
        voucherBatch: {
            // 获取发放批次列表
            getList: hostDomain + 'api/voucher/batch/list',
            // 创建
            createBatch: hostDomain + 'api/voucher/batch/create',
            // 获取优惠券模板列表
            listVoucherTemplate: hostDomain + 'api/voucher/template/list',
            // 检查发放前缀
            checkPrefix: hostDomain + 'api/voucher/batch/checkprefix',
            // 获取发放批次详情列表
            getItemList: hostDomain + 'api/voucher/batchitem/list',
            // 取消优惠券
            removeBatch: hostDomain + 'api/voucher/batch/remove'
        }
    },
    //开票管理
    invoiceManage: {
        // 开票分类管理
        invoiceCateManage: {
            // 获取开票分类列表
            getAllList: hostDomain + 'api/invoice/category/list',
            // 编辑发票分类（获取详情）
            getInvoiceInfor: hostDomain + 'api/invoice/category/get',
            //创建开票分类
            creatInvoiceCate: hostDomain + 'api/invoice/category/create',
            //更新开票分类
            uodateInvoiceInfor: hostDomain + 'api/invoice/category/update',
            // 设置默认开票分类
            setDefaultInvoiceCate: hostDomain + 'api/invoice/category/setdefault',
            // 获取默认开票分类
            getDefaultList: hostDomain + 'api/invoice/category/getdefault',
            // 批量上传开票分类
            uploadInvoiceCate: hostDomain + 'api/invoice/category/batch',
            // 获取所有开票分类
            getAllInvoiceCate: hostDomain + 'api/invoice/category/all',
            // 开票优惠政策标识
            getPreferentialPolicyList: hostDomain + 'api/SettingManage/setting/list?key=InvoicePreferentialPolicy',
            // 开票零税率标识
            getZeroTaxMarkList: hostDomain + 'api/SettingManage/setting/list?key=InvoiceZeroTaxMark',
            // 开票增值税特殊管理标识
            getTaxSpecialContentList: hostDomain + 'api/SettingManage/setting/list?key=InvoiceTaxSpecialContent'
        },
        goodsInvoiceCategory: {
            // 获取所有商品开票分类列表
            getGoodsInvoiceList: hostDomain + 'api/invoice/goods/list',
            // 获取商品开票分类详情
            getGoodsInvoiceInfor: hostDomain + 'api/invoice/goods/get',
            // 批量导入商品开票分类关联
            uploadGoodsInvoiceList: hostDomain + 'api/invoice/goods/create',
            // 更新商品开票分类关联
            updateRelevance: hostDomain + 'api/invoice/goods/update',
        }
    },
    // 卡券管理
    cardManagement: {
        // 卡券模板管理
        cardTemplate: {
            getList: hostDomain + 'api/card/template/list',
            getListItem: hostDomain + 'api/card/template/get',
            createItem: hostDomain + 'api/card/template/create',
            editItem: hostDomain + 'api/card/template/update',
            listShipping: hostDomain + 'api/card/shipping/list',
            getGoodsInfo: hostDomain + 'api/card/goods/get',
            listExchangeCardRegion: hostDomain + 'api/card/region/list',
        },
        batchinfo: {
            getList: hostDomain + 'api/card/batchinfo/list',
            getListInfo: hostDomain + 'api/card/template/listinfo',
            createBatchInfo: hostDomain + 'api/card/batchinfo/create',
            editItem: hostDomain + 'api/card/template/update',
            listShipping: hostDomain + 'api/card/shipping/list'
        },
        cardInfo: {
            getList: hostDomain + 'api/card/card/get',
            getListItemDownLoad: hostDomain + 'api/card/exchangecard/download'
        }
    }
}